<div class="ibox">
 <div class="ibox-content">
<form class="form-horizontal" id="addForm" action="${cxt!}/platform/menu/add" method="POST" >
           <div class="form-group">
	             <label for="namebasic" class="col-md-2 control-label">${_res["systemManage.menuName"]}<span class="fontColorRed">&nbsp;*</span></label>
	             <div class="col-md-3 ">
	              	<input type="text" class="form-control" name="menu.name" placeholder="${_res['systemManage.menuName']}" required aria-required="true">
	             </div>
	             
	             <label for="namebasic" class="col-md-2 control-label">${_res["systemManage.menuNameen"]}<span class="fontColorRed">&nbsp;*</span></label>
	             <div class="col-md-3">
	              	<input type="text" class="form-control" name="menu.nameen" placeholder="${_res['systemManage.menuNameen']}" required aria-required="true">
	             </div> 
           </div>
           <div class="hr-line-dashed"></div>
           
            <div class="form-group">
	             <label for="partentInputId" class="col-md-2 control-label">${_res["systemManage.menuSup"]}<span class="fontColorRed">&nbsp;*</span></label>
	             <div class="col-md-3">
	                <!-- 父菜单id，从modal中获取 -->
	              	<input type="text" class="form-control" name="parentMenuName" id="partentMenuName" placeholder="${_res['systemManage.menuSelect']}" data-toggle="modal" data-target="#myModal">
	              	<input type="hidden" name="menu.parentid"  id="parentMenuId" required aria-required="true"/>
	             </div>	 
	                         
	             <label for="namebasic" class="col-md-2 control-label">URL</label>
	             <div class="col-md-3">
	              	<input type="text" class="form-control" name="menu.url" placeholder="URL" >
	             </div>	             
           </div>
           <div class="hr-line-dashed"></div>
 
           <div class="form-group">
                <label class="col-sm-2 control-label">${_res["systemManage.menuSystem"]}<span class="fontColorRed">&nbsp;*</span></label>
                <div class="col-sm-3">
                    <#dict class="form-control" type="select" name="menu.systemid"  dictCode="SYSTEM_CODE" defaultValue="2" required="true" />
                </div>	   
                
                <label class="col-sm-2 control-label">${_res["systemManage.menuStatus"]}<span class="fontColorRed">&nbsp;*</span></label>
                <div class="col-sm-3">
                    <#dict type="select" class="form-control" name="menu.status"  dictCode="COMMON_STATUS"  required="true"/>
                </div>	                          	             
           </div>
		   <div class="hr-line-dashed"></div>

            <div class="form-group">
	             <label for="namebasic" class="col-md-2 control-label">${_res["system.priority"]}</label>
	             <div class="col-md-3">
	              	<input type="text" class="form-control" name="menu.priority" placeholder="${_res["system.priority"]}" >
	             </div>	             
           </div>
           <div class="hr-line-dashed"></div>
           		
			<div class="form-group">
              <div class="col-md-10 col-md-offset-2">
                <button type="button" class="btn btn-warning" onClick="ajaxContent('/platform/menu/list')">${_res["system.return"]}</button>
                <button type="submit" class="btn btn-primary" >${_res["system.save"]}</button>
                <button type="button" class="btn btn-danger" onClick="ajaxContent('/platform/menu/list')">${_res["system.cancel"]}</button>
              </div>
            </div>
            
</form>
</div>
</div>
<#submit  formId="addForm"  divId="content" />
        
        
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModaLabel">
	<%include("selectPartentNode.html"){}%>
</div>
<#nav />


<script>
$(document).ready(function(){
	//增加模拟框拖动效果
	$(".modal").draggable({
	    handle: ".modal-header"
	});
});
</script>